<?php

session_start();
$_SESSION['name'] = 'panying';
//删除session用unset
unset($_SESSION['name']);
echo $_SESSION['name'];